@section('content')
<div class="am-cf am-padding">
   <div class="am-fl am-cf">
      <a href="{{URL::route('address.province')}}">
      	<strong class="am-text-primary am-text-lg">{{$city->province->name}}</strong></a> / 
      <a href="{{URL::route('address.city',$city->province->id)}}"><small>{{$city->name}}</small></a> / 
      <small>区县</small>
   </div>
</div>
    <div class="am-g">
      <div class="am-u-sm-12">
          <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
              <tr>
                <th>ID</th>
                <th>名称</th>
              </tr>
          </thead>
          <tbody>
          	@foreach ($city->districts as $d)
            <tr data-id="{{$d->id}}"  data-name='{{$d->name}}'>
              <td>{{$d->id}}</td>
              <td>{{$d->name}}</td>
            </tr>
            @endforeach
          </tbody>
        </table>
      </div>
    </div>
@stop

@section('script')
<script type="text/javascript">
$(function () {
});
</script>
@stop
